package com.summary.richtext.mapper;

import com.summary.richtext.entity.Student;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public enum StudentData {

    ONE(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    TWO(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    THREE(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    FOUR(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    FIVE(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    SIX(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    SEVEN(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    EIGHT(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    NINE(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>"),
    TEN(1001,"王鹏","<p><font size='2'><font color='#00ff00'>机车</font><b>检修</b><font color='#00ff00'>图样以<b>HXD3机</b></font><b>车产品<font color='#00ff00'>图样【1Y3T0300】</font></b><font color='#00ff00'>为基</font><u>本依据</u><font color='#00ff00'>，</font><b>特殊情况</b><font color='#00ff00'>另行处理。</font></font></p>");

    @Getter
    private Integer stuId;
    @Getter
    private String stuName;
    @Getter
    private String archives;

    StudentData(Integer stuId,String stuName,String archives) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.archives = archives;
    }

    public static List<Student> getDataList() {
        List<Student> list = new ArrayList<>();
        StudentData[] values = StudentData.values();
        for (StudentData value : values) {
            Student student = new Student();
            student.setStuId(value.getStuId());
            student.setStuName(value.getStuName());
            student.setArchives(value.getArchives());
            list.add(student);
        }
        return list;
    }

}
